package com.stress.testing.plugin.es.strategy;

import org.elasticsearch.index.reindex.UpdateByQueryRequest;

public class UpdateByQueryRequestIndexRenameStrategy extends AbstractRequestIndexRenameStrategy {
    @Override
    public void renameIndex(Object arg) {
        UpdateByQueryRequest request = (UpdateByQueryRequest) arg;
        request.indices(internalRenameIndex(request.indices()));
    }
}